package com.gitee.wsl.ext.collection

fun <T> Iterable<T>.asList(): List<T> = when (this) {
    is List<T> -> this
    else -> this.toList()
}